package wwl.lsf;

import org.apache.dubbo.common.extension.Activate;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;

@Configuration
@ComponentScan(basePackages = "wwl.lsf.dao",
    //没有@Component, @Repository, @Service, @Controller, @Configuration,依然可以扫描
    includeFilters = @Filter(type = FilterType.REGEX, pattern = "wwl.lsf.dao.*"),
    //不扫描的类
    excludeFilters = @Filter({Service.class})

)
@ImportResource("classpath:spring.xml")
@Profile("dev")
public class AppConfig {
}